package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Strategy;
import cn.wolfcode.wolf2w.domain.Travel;
import cn.wolfcode.wolf2w.query.QueryObject;
import cn.wolfcode.wolf2w.query.TravelQueryObject;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ITravelService {
    /**
     * 添加
     * @param travel
     * @return
     */
    void save(Travel travel);

    /**
     * 更新
     * @param travel
     * @return
     */
    void update(Travel travel);

    /**
     * 查单个
     * @param id
     * @return
     */
    Travel get(String id);

    /**
     * 查多个
     * @return
     */
    List<Travel> list();


    /**
     * 添加与更新
     * @param travel
     */
//    void saveOrUpdate(Travel travel);

    /**
     * 删除
     * @param id
     */
    void delete(String id);

    Page<Travel> query(TravelQueryObject qo);

    void audit(String id, int state);

    void saveOrUpdate(Travel travel);


    List<Travel> queryViewNum(String destId);
}
